package com.shanzmoo.db.logistics.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 发货订单详情
 *
 * @author： Gzhao 2021/1/8
 */
@Data
@ApiModel("发货订单详情")
public class DeliveryBillInfoVO {

    @ApiModelProperty("发货商品详情")
    private List<DeliverySkuDetailVO> skuDetailList;

    @ApiModelProperty("发货物流详情")
    private List<DeliveryLogisticsDetailVO> logisticsDetailList;

    public static DeliveryBillInfoVO create(List<DeliveryLogisticsDetailVO> logisticsDetailList, List<DeliverySkuDetailVO> skuDetailList) {
        DeliveryBillInfoVO billInfoVO = new DeliveryBillInfoVO();
        billInfoVO.setSkuDetailList(skuDetailList);
        billInfoVO.setLogisticsDetailList(logisticsDetailList);

        return billInfoVO;
    }
}
